<template>
  <div style="width: 97%;">
    <h2>内部管理情况</h2>
    <el-form :model="postForm" ref="postFormRef" size="default" :rules="postRules" label-width="200px">
      <el-row :gutter="20">
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">机构管理</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="institutionalManagementRegime" label="是否建立分支(代表)机构管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.institutionalManagementRegime" placeholder="请选择">
              <el-option v-for="dict in shiOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">证书印章</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="legalCertificateRegime" label="法人证书保管、使用制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.legalCertificateRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="legalCertificateRegimeDeposit" label="法人证书保管处">
            <el-input v-model="postForm.legalCertificateRegimeDeposit" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="sealRegime" label="印章保管、使用制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.sealRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="sealRegimeDeposit" label="印章保管处">
            <el-input v-model="postForm.sealRegimeDeposit" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">档案管理</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="archivesRegime" label="档案管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.archivesRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12" lab>
          <el-form-item prop="archivesRegimeDeposit" label="档案保管处">
            <el-input v-model="postForm.archivesRegimeDeposit" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">人力资源</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="personnelRegime" label="人事管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.personnelRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="laborContractCount" label="签订劳动合同人数">
            <el-input type="number" v-model="postForm.laborContractCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="salaryRegime" label="薪酬管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.salaryRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="checkRegime" label="考核制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.checkRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="rewardPunishmentRegime" label="奖惩制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.rewardPunishmentRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="businessTrainingRegime" label="业务培训制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.businessTrainingRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="unemploymentInsuranceNum" label="失业保险人数">
            <el-input type="number" v-model="postForm.unemploymentInsuranceNum" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="endowmentInsuranceNum" label="养老保险人数">
            <el-input type="number" v-model="postForm.endowmentInsuranceNum" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="medicalInsuranceNum" label="医疗保险人数">
            <el-input type="number" v-model="postForm.medicalInsuranceNum" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="industrialInjuryInsuranceNum" label="工伤保险人数">
            <el-input type="number" v-model="postForm.industrialInjuryInsuranceNum"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="maternityInjuryInsuranceNum" label="生育保险人数">
            <el-input type="number" v-model="postForm.maternityInjuryInsuranceNum"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>

        <el-col style="margin-bottom: 15px;" :span="23">
          <h3>财务管理</h3>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">银行账户</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="openingBank" label="人民币开户银行">
            <el-input v-model="postForm.openingBank" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="accountName" label="人民币开户名称">
            <el-input v-model="postForm.accountName" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="accountNum" label="人民币开户账号">
            <el-input v-model="postForm.accountNum" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="openingBankFc" label="外币开户银行">
            <el-input v-model="postForm.openingBankFc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="accountNameFc" label="外币开户名称">
            <el-input v-model="postForm.accountNameFc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="accountNumFc" label="外币开户账号">
            <el-input v-model="postForm.accountNumFc" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">财务制度</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="financeIndependent" label="财务核算是否独立">
            <el-select clearable  style="width: 100%;" v-model="postForm.financeIndependent" placeholder="请选择">
              <el-option v-for="dict in shiOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="taxRegistration" label="税务登记">
            <el-select clearable  style="width: 100%;" v-model="postForm.taxRegistration" placeholder="请选择">
              <el-option v-for="dict in shiOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAccountingCount" label="专职财会人员数">
            <el-input type="number" v-model="postForm.fullTimeAccountingCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAccountingQualificationCount" label="其中具有从业资格人数">
            <el-input type="number" v-model="postForm.fullTimeAccountingQualificationCount"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="financeRegime" label="财务管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.financeRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fixedAssetsRegime" label="固定资产管理制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.fixedAssetsRegime" placeholder="请选择">
              <el-option v-for="dict in youOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="implementAccountingRegime" label="执行会计制度">
            <el-select clearable  style="width: 100%;" v-model="postForm.implementAccountingRegime" placeholder="请选择">
              <el-option v-for="dict in accountingOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
            </el-select>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">使用票据</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="membershipFeeReceiptsIssuingAuthority" label="会费票据发放机关">
            <el-input v-model="postForm.membershipFeeReceiptsIssuingAuthority" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="donationReceiptsIssuingAuthority" label="捐赠票据发放机关">
            <el-input v-model="postForm.donationReceiptsIssuingAuthority" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="taxationReceiptsIssuingAuthority" label="税务发票发放机关">
            <el-input v-model="postForm.taxationReceiptsIssuingAuthority" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="administrativeInstitutionalAuthority" label="行政事业性收费票据发放机关">
            <el-input v-model="postForm.administrativeInstitutionalAuthority" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="otherReceiptsAuthority" label="其他票据发放机关">
            <el-input v-model="postForm.otherReceiptsAuthority" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <h3>工作人员 (含专职负责人以及分支机构、代表机构人员）</h3>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">全体工作人员</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="staffCount" label="总人数">
            <el-input type="number" v-model="postForm.staffCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="staffAgeSalary" label="平均年龄">
            <el-input type="number" v-model="postForm.staffAgeSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="staffWomanCount" label="其中:女性人数">
            <el-input type="number" v-model="postForm.staffWomanCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="partyMemberCount" label="中共党员人数">
            <el-input type="number" v-model="postForm.partyMemberCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="volunteerCount" label="志愿者人数">
            <el-input type="number" v-model="postForm.volunteerCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="volunteerTimeCount" label="累计志愿时间（小时）">
            <el-input type="number" v-model="postForm.volunteerTimeCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="avgSalary" label="年度平均薪酬（万元/年）">
            <el-input type="number" v-model="postForm.avgSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="minSalary" label="年度最低薪酬（万元/年）">
            <el-input type="number" v-model="postForm.minSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="maxSalary" label="年度最高薪酬（万元/年）">
            <el-input type="number" v-model="postForm.maxSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">专职工作人员</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeCount" label="总人数">
            <el-input type="number" v-model="postForm.fullTimeCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAgeSalary" label="平均年龄">
            <el-input type="number" v-model="postForm.fullTimeAgeSalary" placeholder="请输入"></el-input>
          </el-form-item>

        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeWomanCount" label="其中:女性人数">
            <el-input type="number" v-model="postForm.fullTimeWomanCount" placeholder="请输入"></el-input>
          </el-form-item>

        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimePartyMemberCount" label="中共党员人数">
            <el-input type="number" v-model="postForm.fullTimePartyMemberCount" placeholder="请输入"></el-input>
          </el-form-item>

        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeVolunteerCount" label="志愿者人数">
            <el-input type="number" v-model="postForm.fullTimeVolunteerCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeVolunteerTimeCount" label="累计志愿时间（小时）">
            <el-input type="number" v-model="postForm.fullTimeVolunteerTimeCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAvgSalary" label="年度平均薪酬（万元/年）">
            <el-input type="number" v-model="postForm.fullTimeAvgSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeMinSalary" label="年度最低薪酬（万元/年）">
            <el-input type="number" v-model="postForm.fullTimeMinSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeMaxSalary" label="年度最高薪酬（万元/年）">
            <el-input type="number" v-model="postForm.fullTimeMaxSalary" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">全体工作人员-其他信息</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="collegeDiplomaCount" label="大学专科人数">
            <el-input type="number" v-model="postForm.collegeDiplomaCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="undergraduateDegreeCount" label="大学本科及以上人数">
            <el-input type="number" v-model="postForm.undergraduateDegreeCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="assistantSocialWorkerCount" label="助理社会工作师人数">
            <el-input type="number" v-model="postForm.assistantSocialWorkerCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="socialWorkerCount" label="社会工作师人数">
            <el-input type="number" v-model="postForm.socialWorkerCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="ageHirtyFiveCount" label="35岁及以下人数">
            <el-input type="number" v-model="postForm.ageHirtyFiveCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="ageHirtySixCount" label="36岁至45岁人数">
            <el-input type="number" v-model="postForm.ageHirtySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="ageFortySixCount" label="46岁至55岁人数">
            <el-input type="number" v-model="postForm.ageFortySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="ageFiftySixCount" label="56岁及以上人数">
            <el-input type="number" v-model="postForm.ageFiftySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="23">
          <span style="font-size: 18px;font-weight: bold;line-height: 36px;">专职工作人员-其他信息</span>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeCollegeDiplomaCount" label="大学专科人数">
            <el-input type="number" v-model="postForm.fullTimeCollegeDiplomaCount"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeUndergraduateDegreeCount" label="大学本科及以上人数">
            <el-input type="number" v-model="postForm.fullTimeUndergraduateDegreeCount"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAssistantSocialWorkerCount" label="助理社会工作师人数">
            <el-input type="number" v-model="postForm.fullTimeAssistantSocialWorkerCount"
                      placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeSocialWorkerCount" label="社会工作师人数">
            <el-input type="number" v-model="postForm.fullTimeSocialWorkerCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAgeHirtyFiveCount" label="35岁及以下人数">
            <el-input type="number" v-model="postForm.fullTimeAgeHirtyFiveCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAgeHirtySixCount" label="36岁至45岁人数">
            <el-input type="number" v-model="postForm.fullTimeAgeHirtySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAgeFortySixCount" label="46岁至55岁人数">
            <el-input type="number" v-model="postForm.fullTimeAgeFortySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
        <el-col style="margin-bottom: 15px;" :span="12">
          <el-form-item prop="fullTimeAgeFiftySixCount" label="56岁及以上人数">
            <el-input type="number" v-model="postForm.fullTimeAgeFiftySixCount" placeholder="请输入"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
  </div>
</template>
<script>
import { getDictByCode, getTableInfoByPage, stSaveMeeting, stSaveRegulatory } from '@/views/yearCheck/ykb/st/st'

export default {
  data() {
    return {
      accountingOptions: undefined,
      sexOptions: [{ id: '1', name: '男' }, { id: '2', name: '女' }],
      shiOptions: [{ id: 1, name: '是' }, { id: 2, name: '否' }],
      youOptions: [{ id: 1, name: '有' }, { id: 2, name: '无' }],
      postForm: {
        accountName: '',//开户名称
        accountNameFc: '',//外币开户名称
        accountNum: '',//开户账号
        accountNumFc: '',//外币开户账号
        accumulationFundNum: '',//公积金人数
        administrativeInstitutionalAuthority: '',//行政事业性收费票据发放机关
        ageFiftySixCount: '',//56岁及以上总人数
        ageFortySixCount: '',//46岁至55岁总人数
        ageHirtyFiveCount: '',//35岁及以下总人数
        ageHirtySixCount: '',//36岁至45岁总人数
        archivesRegime: '',//是否有档案管理制度1-是 2-否 0-未知
        archivesRegimeDeposit: '',//有档案管理制度保存处
        assistantSocialWorkerCount: '',//助理社会工作师总人数
        avgSalary: '',//平均薪资
        staffAgeSalary: '',//平均年龄,
        businessTrainingRegime: '',//是否有业务培训制度1-是 2-否 0-未知
        checkRegime: '',//是否有考核制度1-是 2-否 0-未知
        collegeDiplomaCount: '',//大学专科总人数
        creditCode: localStorage.getItem('creditCode'),//统一社会信用代码
        donationReceiptsIssuingAuthority: '',//捐赠票据发放机关
        endowmentInsuranceNum: '',//养老保险人数
        establishingTeam: '',//是否建立团组织 0-未知、1-是 2-否
        establishingTradeUnions: '',//是否建立工会 0-未知、1-是 2-否
        establishingWomenFederation: '',//是否建立妇联 0-未知、1-是 2-否
        examineYear: localStorage.getItem('examineYear'),//备案年度
        financeIndependent: '',//财务核算是否独立1-是 2-否 0-未知
        financeRegime: '',//是否有财务管理制度1-是 2-否 0-未知
        fixedAssetsRegime: '',//是否有固定资产管理制度1-是 2-否 0-未知
        fullTimeAccountingCount: '',//专职财会人数
        fullTimeAgeSalary: '',//专职平均年龄
        fullTimeAccountingQualificationCount: '',//专职财会从业资格人数
        fullTimeAgeFiftySixCount: '',//专职56岁及以上总人数
        fullTimeAgeFortySixCount: '',//专职46岁至55岁总人数
        fullTimeAgeHirtyFiveCount: '',//专职35岁及以下总人数
        fullTimeAgeHirtySixCount: '',//专职36岁至45岁总人数
        fullTimeAssistantSocialWorkerCount: '',//专职助理社会工作师总人数
        fullTimeAvgSalary: '',//专职平均薪资
        fullTimeCollegeDiplomaCount: '',//专职大学专科总人数
        fullTimeCount: '',//专职工作人员总人数
        fullTimeMaxSalary: '',//专职最高薪资
        fullTimeMinSalary: '',//专职最低薪资
        fullTimePartyMemberCount: '',//专职党员总人数
        fullTimeSocialWorkerCount: '',//专职社会工作师总人数
        fullTimeUndergraduateDegreeCount: '',//专职大学本科及以上总人数
        fullTimeVolunteerCount: '',//专职志愿者总人数
        fullTimeVolunteerTimeCount: '',//专职累计志愿时间
        fullTimeWomanCount: '',//专职工作人员女性总人数
        id: '',
        implementAccountingRegime: '',//执行会计制度
        industrialInjuryInsuranceNum: '',//工伤保险人数
        institutionalManagementRegime: '',//是否有分支(代表)机构管理制度1-是 2-否 0-未知
        insureFullTimeNum: '',//专职工作人员参加社会保险人数
        laborContractCount: '',//劳动合同数
        legalCertificateRegime: '',//是否有法人证书保管、使用制度1-是 2-否 0-未知
        legalCertificateRegimeDeposit: '',//法人证书保管、使用制度保存处
        maternityInjuryInsuranceNum: '',//生育保险人数
        maxSalary: '',//最高薪资
        medicalInsuranceNum: '',//医疗保险人数
        membershipFeeReceiptsIssuingAuthority: '',//会费票据发放机关
        minSalary: '',//最低薪资
        openingBank: '',//开户行
        openingBankFc: '',//外币开户行
        organizationBaseId: '',//社团组织id
        otherReceiptsAuthority: '',//其它票据发放机关
        partyBuildConstitutionReason: '',//未将党的建设和社会主义核心价值观写入章程原因
        partyBuildSocialistCoreValuesConstitution: '',//是否将党的建设和社会主义核心价值观写入章程 0-未知、1-是 2-否
        partyMemberCount: '',//党员总人数
        partyMembersNum: '',//党员数
        partyOrganization: '',//是否建立党组织 0-未知、1-是 2-否
        personnelRegime: '',//是否有人事管理制度1-是 2-否 0-未知
        responsiblePeopleCppccNum: '',//负责人政协委员人数
        responsiblePeopleNpcNum: '',//负责人人大代表人数
        responsiblePeopleNum: '',//负责人人数
        responsiblePeopleWomanNum: '',//负责人女性人数
        rewardPunishmentRegime: '',//是否有奖惩制度1-是 2-否 0-未知
        salaryRegime: '',//是否有薪酬管理制度1-是 2-否 0-未知
        sealRegime: '',//是否有印章保管、使用制度1-是 2-否 0-未知
        sealRegimeDeposit: '',//印章保管、使用制度保存处
        signFullTimeNum: '',//专职工作人员签订聘用合同人数
        socialWorkerCount: '',//社会工作师总人数
        staffCount: '',//工作人员总人数
        staffWomanCount: '',//工作人员女性总人数
        taxRegistration: '',//税务登记
        taxationReceiptsIssuingAuthority: '',//税务票据发放机关
        teamActivitieNum: '',//群团组织活动次数
        undergraduateDegreeCount: '',//大学本科及以上总人数
        unemploymentInsuranceNum: '',//失业保险人数
        volunteerCount: '',//志愿者总人数
        volunteerTimeCount: '',//累计志愿时间
        yearlyAwards: '',//年度单位获奖情况
        yearlyLaidOffEmploymentNum: ''//年度安排下岗人员就业人数
      },
      postRules: {
        accountName: [{ required: true, message: '请完善', trigger: 'blur' }],
        // accountNameFc: [{ required: true, message: '请完善', trigger: 'blur' }],
        accountNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        // accountNumFc: [{ required: true, message: '请完善', trigger: 'blur' }],
        accumulationFundNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        administrativeInstitutionalAuthority: [{ required: true, message: '请完善', trigger: 'blur' }],
        ageFiftySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        ageFortySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        ageHirtyFiveCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        ageHirtySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        archivesRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        archivesRegimeDeposit: [{ required: true, message: '请完善', trigger: 'blur' }],
        assistantSocialWorkerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        avgSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        businessTrainingRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        checkRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        collegeDiplomaCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        donationReceiptsIssuingAuthority: [{ required: true, message: '请完善', trigger: 'blur' }],
        endowmentInsuranceNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        establishingTeam: [{ required: true, message: '请完善', trigger: 'blur' }],
        establishingTradeUnions: [{ required: true, message: '请完善', trigger: 'blur' }],
        establishingWomenFederation: [{ required: true, message: '请完善', trigger: 'blur' }],
        financeIndependent: [{ required: true, message: '请完善', trigger: 'blur' }],
        financeRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        fixedAssetsRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAccountingCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAccountingQualificationCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAgeFiftySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAgeFortySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAgeHirtyFiveCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAgeHirtySixCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAssistantSocialWorkerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAvgSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeCollegeDiplomaCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeMaxSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeMinSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimePartyMemberCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeSocialWorkerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeUndergraduateDegreeCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeVolunteerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeVolunteerTimeCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeWomanCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        implementAccountingRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        industrialInjuryInsuranceNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        institutionalManagementRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        insureFullTimeNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        laborContractCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        legalCertificateRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        legalCertificateRegimeDeposit: [{ required: true, message: '请完善', trigger: 'blur' }],
        maternityInjuryInsuranceNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        maxSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        medicalInsuranceNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        membershipFeeReceiptsIssuingAuthority: [{ required: true, message: '请完善', trigger: 'blur' }],
        minSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        openingBank: [{ required: true, message: '请完善', trigger: 'blur' }],
        // openingBankFc: [{ required: true, message: '请完善', trigger: 'blur' }],
        organizationBaseId: [{ required: true, message: '请完善', trigger: 'blur' }],
        otherReceiptsAuthority: [{ required: true, message: '请完善', trigger: 'blur' }],
        partyBuildConstitutionReason: [{ required: true, message: '请完善', trigger: 'blur' }],
        partyBuildSocialistCoreValuesConstitution: [{ required: true, message: '请完善', trigger: 'blur' }],
        partyMemberCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        partyMembersNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        partyOrganization: [{ required: true, message: '请完善', trigger: 'blur' }],
        personnelRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        responsiblePeopleCppccNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        responsiblePeopleNpcNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        responsiblePeopleNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        responsiblePeopleWomanNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        rewardPunishmentRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        salaryRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        sealRegime: [{ required: true, message: '请完善', trigger: 'blur' }],
        sealRegimeDeposit: [{ required: true, message: '请完善', trigger: 'blur' }],
        signFullTimeNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        socialWorkerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        staffCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        staffWomanCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        taxRegistration: [{ required: true, message: '请完善', trigger: 'blur' }],
        taxationReceiptsIssuingAuthority: [{ required: true, message: '请完善', trigger: 'blur' }],
        teamActivitieNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        undergraduateDegreeCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        unemploymentInsuranceNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        volunteerCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        volunteerTimeCount: [{ required: true, message: '请完善', trigger: 'blur' }],
        yearlyLaidOffEmploymentNum: [{ required: true, message: '请完善', trigger: 'blur' }],
        staffAgeSalary: [{ required: true, message: '请完善', trigger: 'blur' }],
        fullTimeAgeSalary: [{ required: true, message: '请完善', trigger: 'blur' }]
      }
    }
  },
  created() {

  },
  methods: {
    postInfo() {
      this.postForm.creditCode = localStorage.getItem('creditCode')
      this.postForm.examineYear = localStorage.getItem('examineYear')
      this.$refs.postFormRef.validate(valid => {
        if (valid) {
          stSaveRegulatory(this.postForm).then(response => {
            this.$message({
              message: '内部管理情况保存成功',
              type: 'success'
            })
            this.getInfo()
          })
        } else {
          this.$message({
            message: '请填写完整',
            type: 'error'
          })
        }
      })
    },
    getInfo() {
      getTableInfoByPage(5).then(response => {
        this.postForm = JSON.parse(JSON.stringify(response.data).replace(/null/g, '""'))
        if (this.postForm.taxRegistration != '') {
          this.postForm.taxRegistration = Number(this.postForm.taxRegistration)
        }
        if (this.postForm.institutionalManagementRegime == null || this.postForm.institutionalManagementRegime == 0) {
          this.postForm.institutionalManagementRegime = ''
        }
        if (this.postForm.businessTrainingRegime == null || this.postForm.businessTrainingRegime == 0) {
          this.postForm.businessTrainingRegime = ''
        }
        if (this.postForm.checkRegime == null || this.postForm.checkRegime == 0) {
          this.postForm.checkRegime = ''
        }

        if (this.postForm.personnelRegime == null || this.postForm.personnelRegime == 0) {
          this.postForm.personnelRegime = ''
        }
        if (this.postForm.salaryRegime == null || this.postForm.salaryRegime == 0) {
          this.postForm.salaryRegime = ''
        }
        if (this.postForm.rewardPunishmentRegime == null || this.postForm.rewardPunishmentRegime == 0) {
          this.postForm.rewardPunishmentRegime = ''
        }
        if (this.postForm.financeIndependent == null || this.postForm.financeIndependent == 0) {
          this.postForm.financeIndependent = ''
        }
      })
      getDictByCode('accounting').then(response => {
        this.accountingOptions = response.data
      })
    }
  }
}
</script>
<style scoped lang="scss">
.el-table {
  --el-table-row-hover-bg-color: rgba(39, 137, 238, 0.1);
  --el-table-border-color:#e0e5f0;
}
:deep(.el-card.is-always-shadow) {
  box-shadow: 0 1px 14px 0 rgba(209, 224, 239, 0.6)
}

/* 拉框选中 */
.el-select-dropdown__item {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}

/* 鼠标经过下拉框 */
.el-select-dropdown__item:hover {
  height: 24px;
  line-height: 24px;
  font-size: 12px;
}

.el-select-dropdown__item.selected {
  color: #2789EE;
}
.app-container {
  margin-top: 40px;
  margin-left: 15%;
  width: 70%;
}

.div-bg {
  width: 100%;
  background: #F0F0F0;
  height: 10px;
}

.box-card {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
}

.el-col {
  padding-left: 5px;
}

.divider-title {
  font-weight: bold;
  font-size: 18px;
}

.custom-select .el-select-dropdown {
  max-height: 600px; /* 设置为你想要的高度 */
  overflow: auto; /* 添加滚动条 */
}

table {
  border-collapse: collapse; /* 确保表格的边框合并为单一边框 */
  width: 100%; /* 表格宽度 */
}

td {
  border: 1px solid #ababab; /* 设置单线边框 */
  padding: 6px; /* 单元格内边距 */
}

.el-form-item {
  margin-bottom: 0px;
}

:deep(.el-form-item__label) {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  text-align: right;
  height: 32px;
  line-height: 16px;
}

</style>
